home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / appsrcs.zip / MORSETUP.ZIP / APPSAVE.C < prev    next >
C/C++ Source or Header  |  1993-05-07  |  792b  |  37 lines

  1. #define STRICT
  2. #include <windows.h>
  3. #include <windowsx.h>
  4. #include <string.h>
  5. #include "morsetup.h"
  6.  
  7. /*-------------------------------------------------------------------------*/
  8. BOOL WINAPI SaveDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
  9.     {
  10.     switch(message)
  11.     {
  12.     case WM_INITDIALOG:
  13.         strcpy(szBuffer, "Save [");
  14.         strcat(szBuffer, AppSystem.SectionName);
  15.         strcat(szBuffer, "] Settings?");
  16.         SetWindowText(GetDlgItem(hDlg, IDSAVE_TEXT), szBuffer);
  17.         return TRUE;
  18.  
  19.     case WM_COMMAND:
  20.         switch(wParam)
  21.         {
  22.         case IDSAVE_OK:
  23.             EndDialog(hDlg, 0);
  24.             IniSave();
  25.             bSave = FALSE;
  26.             return TRUE;
  27.  
  28.         case IDSAVE_NO:
  29.             EndDialog(hDlg, 0);
  30.             return TRUE;
  31.  
  32.         }
  33.         break;
  34.     }
  35.     return FALSE;
  36.     }
  37.